package doublelinkedlist;
import java.util.Scanner;
public class test{
 
	public static void main(String[] args) {
		Scanner im = new Scanner(System.in)		;
		while(true)
		{
		char s;
		s = im.next().charAt(0) ;                                       //.toString().charAt(0);
		System.out.print(s);
		}
	}
 
}
